package com.cloudpivot.receivales;

import com.alibaba.fastjson.JSONObject;
import com.cloudpivot.receivales.contract.domain.crmcontract.CrmContract;
import com.cloudpivot.receivales.contract.service.http.HttpAPIServiceForCrm;
import com.cloudpivot.receivales.meetingtemp.repository.MeetingTempRepository;
import com.cloudpivot.receivales.meetingtemp.service.MeetingTempServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;
import java.util.Map;

/**
 * coolapp推送测试
 */
@SpringBootTest
class CloudpivotApplicationMeetingTemp {

    @Autowired
    private MeetingTempServiceImpl meetingTempServiceImpl;

    @Autowired
    private MeetingTempRepository meetingTempRepository;

    @Test
    public void testFor1() {
        List<String> meetingNames=meetingTempRepository.getMeetingName();

        for (String name : meetingNames) {
            System.out.println("开始==会议打包=>>"+name);
            meetingTempServiceImpl.getMeettingModelEntity(name);
            System.out.println("结束==会议打包=>>"+name);
        }
    }
}
